<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>导师申请 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/member.css" />
    <link rel="stylesheet" href="__CSS__/msg.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>
<div class="b-page">
    <Admintemplate file="Home/Public/header"/>

<div class="contentbj">
    <div class="member_body">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="180" valign="top" bgcolor="#f5f5f5">
                    <a href="__WEBURL__/user/index/uavatar">
                        <div class="touxiangarea">
                            <div class="uploadpic"></div>
                            <div class="touxiang"><img src="{$userinfo.uavatar|getUavatar}" alt=""/></div>
                        </div>
                    </a>


    <h3 class="listtitle">账号管理</h3>
                    <ul class="listcss">
                        <foreach name="usernav" item="un">
                            <li><a href="__WEBURL__/user/index/{$un.link}" class="{$un.act}">{$un.title}</a></li>
                        </foreach>
                    </ul></td>
                <td valign="top" style="padding-left:27px;">
                    <div class="yf-teach__box">
                        <div class="yf-teach__title">
                            导师申请说明
                        </div>
                        <p class="yf-teach__content">{$config}</p>
                    </div>
                    <div class="yf-teach__btn">
                    <if condition="$user.ifds eq 1">
                        <a class="yf-teach__href">申请成功</a>
                    </if>
                    <if condition="$user.ifds eq 0">
                        <a class="yf-teach__href yf-teach__act">导师申请</a>
                    </if>
                    <if condition="$user.ifds eq 2">
                        <a class="yf-teach__href yf-teach__status">申请审核中</a>
                    </if>
                    <if condition="$user.ifds eq -1">
                        <a class="yf-teach__href yf-teach__act">重新申请</a>
                    </if>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
    
    <Admintemplate file="Home/Public/footer"/>

</div>

<script src="__JS__/index.js"></script>

<script src="__JS__/jquery.common.js"></script>
<script src="__JS__/jquery.form.min.js"></script>
<script src="__JS__/jquery.doajax.js"></script>
<script>
    $(document).ready(function(){
            $('.yf-teach__act').click(function(e){
         	   e.preventDefault();
         	   var url = '__WEBURL__/user/index/teach';
         	   $.post(url, {  }, function(res){
        		    if(res.status == 1)
        		    {
            		    $.tipMessage(res.info, 1, 3000, 0, function(){
            		        location.reload();
            		    });
        		    }
        		    else
        		    {
            		    $.tipMessage(res.info, 1, 3000);
        		    }
         	   }, 'json');     
    	    });
    });
</script>

</body>
</html>